# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=duplicut
pkgver=2.2
pkgrel=1
pkgdesc='Remove duplicates from massive wordlist, without sorting it (for dictionnary-based password cracking).'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-misc' 'blackarch-cracker')
url='https://github.com/nil0x42/duplicut'
license=('GPL3')
makedepends=('make')
source=("https://github.com/nil0x42/$pkgname/archive/v$pkgver.tar.gz")
sha512sums=('f9ec9c7e4604b99689da2279773de33b18cef02bb8b41f1160963909503696bc276ac53b6d81eaf068f7fdff52a541fdadac430d775c4f7c11dd1ed636fe628e')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" PREFIX="$pkgdir/usr" install

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md
}

